/*
 * @Date         : 2022-06-08 22:43:06
 * @LastEditors  : zu1662
 * @LastEditTime : 2024-05-24 15:10:25
 * @Description  : 阿里云配置项
 *
 * Copyright © 2022 by zu1662, All Rights Reserved.
 */
import { registerAs } from '@nestjs/config';

export default registerAs(
  'smtp',
  (): Record<string, any> => ({
    host: process.env.SMTP_HOST || '',
    port: process.env.SMTP_PORT || '',
    user: process.env.SMTP_USER || '',
    password: process.env.SMTP_PASS || '',
    fromEmail: process.env.SMTP_FROMEMAIL || '',
  })
);
